package widget.common.event
{
	import flash.events.Event;
	import flash.net.*;
	
	public class ConnectionEvent extends Event {
		public static const CONNECT_COMPLETE:String="connect_complete";
		public static const CONNECT_ERROR:String="connect_error";
		public static const CONNECT_PROGRESS:String = "connect_progress";
		
		private var _loader:URLLoader;
		private var _error:String = "";
		public function ConnectionEvent(type:String,loader:URLLoader,err:String = "") {
			super(type,false,false);
			_loader = loader;
			_error = err;
		}
		
		override public function clone():Event {
			return null;
		}
		
		public function getMessage():String{
			return _error;
		}
		
		public function getLoader():URLLoader{
			return _loader;
		}
	}
}